package string;

public class ReplaceAllDemo {
    public static void main(String[] args) {
        String str = "asd231dc12sa";
        str = str.replaceAll("[a-z]+","。。6");
        System.out.println(str);

        String regrx = "(6|7|8|9|0)";
        String message = "6。。。7。。8。。";
        message = message.replaceAll(regrx,"#");
        System.out.println(message);
    }
}
